Weather displaying method and device

ABSTRACT

The present disclosure discloses a method and a device for displaying weather. The method includes: acquiring weather information and orientation information of a terminal device; generating a weather animation according to the weather information and the orientation information of the terminal device; and displaying the weather animation on the terminal device. Accordingly, a plurality of weather conditions are comprehensively and dynamically presented via integrated motion pictures, and the weather conditions are displayed more accurately, realistically, and intuitively.

CROSS-REFERENCE TO RELATED APPLICATIONS

This application is a Continuation Application of InternationalApplication No. PCT/CN2015/071343 with an international filing date ofJan. 22, 2015, which is based upon and claims priority to Chinese PatentApplication No. 201410397287.6, filed on Aug. 12, 2014, the entirecontents of which are incorporated herein by reference.

TECHNICAL FIELD

The present disclosure relates to the field of information processingtechnologies, and more particularly, to a method and a device fordisplaying weather.

BACKGROUND

In recent years, with the development of smart phones, mobile phoneapplication have become an indispensable product in people's daily life.Gathering of weather information, which is necessary for people inthousands of years, occupies an important place in the mobile phoneapplications.

Weather applications have undergo a significant development, and a largevariety of weather applications are available in the market. In relatedtechnologies, a weather application describes weather conditions.Generally, some images or animations are preconfigured in theapplication, and these images or animations are placed on the interfaceof the application depending on the types of weather.

SUMMARY

Embodiments of the present disclosure provide a method and a device fordisplaying weather.

According to a first aspect of the embodiments of the presentdisclosure, a method for displaying weather is provided. The methodincludes: acquiring weather information and orientation information of aterminal device; generating a weather animation according to the weatherinformation and the orientation information of the terminal device; anddisplaying the weather animation on the terminal device.

According to a second aspect of the embodiments of the presentdisclosure, a device for displaying weather is provided. The deviceincludes: one or more processor; a memory for storing instructionsexecutable by the processors. In this case, the processors areconfigured to acquire weather information and orientation information ofa terminal device and generate a weather animation according to theweather information and the orientation information of the terminaldevice and display the weather animation on the terminal device.

According to a third aspect of embodiments of the present disclosure, anon-transitory computer-readable storage medium is provided. Thenon-transitory computer-readable storage medium have stored thereininstructions that, when executed by one or more processors of a device,cause the device to perform: acquiring weather information andorientation information of a terminal device; generating a weatheranimation according to the weather information and the orientationinformation of the terminal device; and displaying the weather animationon the terminal device.

In the embodiments, the weather animation is generated according to theweather information and the orientation information. In this way, aplurality of weather conditions are comprehensively and dynamicallypresented via integrated motion pictures, and the weather conditions aredisplayed more accurately, realistically, and intuitively. In addition,the weather conditions are presented in combination with currentorientation information of a terminal device, thus making thepresentation of the weather condition effectively interacts with usersby considering the state which the users brought upon the terminaldevice, and creating more diverse effects in the presentation of theweather conditions. This gives a fully immersive experience for theuser, and improves user experience.

It shall be appreciated that the above general description and thedetailed description hereinafter are only illustrative andinterpretative, but not for limiting the present disclosure.

BRIEF DESCRIPTION OF THE DRAWINGS

The accompanying drawings herein, which are incorporated into andconstitute a part of the specification, illustrate embodimentsconsistent with the present disclosure, and together with thespecification, serve to explain the principles of the presentdisclosure.

FIG. 1 is a flowchart illustrating a method for displaying weatheraccording to an exemplary embodiment of the present disclosure;

FIG. 2 is a flowchart illustrating a method for displaying weatheraccording to another exemplary embodiment of the present disclosure;

FIG. 3 and FIG. 4 are schematic diagrams illustrating displaying of aweather animation according to an exemplary embodiment of the presentdisclosure;

FIG. 5 and FIG. 6 are schematic diagrams illustrating displaying of aweather animation according to another exemplary embodiment of thepresent disclosure;

FIG. 7 is a flowchart illustrating a method for displaying weatheraccording to another exemplary embodiment of the present disclosure;

FIG. 8 is a flowchart illustrating a method for displaying weatheraccording to another exemplary embodiment of the present disclosure;

FIG. 9 is a block diagram illustrating a weather displaying apparatusaccording to an exemplary embodiment of the present disclosure;

FIG. 10 is a block diagram illustrating a generating module according toan exemplary embodiment of the present disclosure;

FIG. 11 is a block diagram illustrating a generating module according toanother exemplary embodiment of the present disclosure;

FIG. 12 is a block diagram illustrating a weather displaying apparatusaccording to another exemplary embodiment of the present disclosure;

FIG. 13 is a block diagram illustrating a weather displaying apparatusaccording to another exemplary embodiment of the present disclosure; and

FIG. 14 is a block diagram illustrating a device 1300 for displayingweather according to an exemplary embodiment of the present disclosure.

DESCRIPTION OF THE EMBODIMENTS

Reference will now be made in detail to exemplary embodiments, examplesof which are illustrated in the accompanying drawings. The followingdescription refers to the accompanying drawings in which the samenumbers in different drawings represent the same or similar elementsunless otherwise represented. The implementations set forth in thefollowing description of exemplary embodiments do not represent allimplementations consistent with the present disclosure. Instead, theyare merely examples of apparatuses and methods consistent with aspectsrelated to the present disclosure as recited in the appended claims.

FIG. 1 is a flowchart illustrating a method for displaying weatheraccording to an exemplary embodiment of the present disclosure. Asillustrated in FIG. 1, the method for displaying weather is applicableto a terminal device, and includes the following steps.

In step S11, weather information and orientation information of aterminal device are acquired.

In step S12, a weather animation is generated according to the weatherinformation and the orientation information.

In step S13, the weather animation is displayed on the terminal device.

In the above step S11, the terminal device may acquire weatherinformation covering a plurality of weather conditions over theInternet, for example, such weather-related information as sun, cloud,overcast, rain (at different grades), freezing rain, shower, snow (atdifferent grades), sleet, hail, foggy, flying sand, flying dust, haze(at different grades), wind (wind direction and wind force),temperature, humidity, and the like.

In the above step S11, the current orientation information of theterminal device, i.e., information indicating whether the terminaldevice is laid horizontally, vertically, or sideways, and what is thespecific inclination angle, and the like may be detected by a gravitysensor equipped in the terminal device, for example, an accelerometer, agyroscope, an electronic compass, and the like. Further, it may also bedetected whether a screen of the terminal device is faced horizontallyupward or horizontally downward. When the terminal device is held indifferent orientations, different weather animations are presented forthe user; and when the user changes the orientation of the terminaldevice, an animation corresponding to the current orientation of theterminal device is accordingly displayed on the screen of the terminaldevice.

In this embodiment, the weather animation is generated according to theweather information and the orientation information. In this way, aplurality of weather conditions are comprehensively and dynamicallypresented via integrated motion pictures, and the weather conditions aredisplayed more accurately, realistically, and intuitively. In addition,the weather conditions are presented in combination with currentorientation information of a terminal device, thus making thepresentation of the weather condition effectively interacts with usersby considering the state which the users brought upon the terminaldevice, and creating more diverse effects in the presentation of theweather conditions. This gives a fully immersive experience for theuser, and improves user experience.

FIG. 2 is a flowchart illustrating a method for displaying weatheraccording to another exemplary embodiment of the present disclosure. Asillustrated in FIG. 2, optionally, the above step S12 includes thefollowing steps.

In step S21, at least one weather element for generating the weatheranimation is determined according to the weather information.

In step S22, a motion state of each of the at least one weather elementis determined according to the orientation information of the terminaldevice.

In step S23, the weather animation is generated according to the motionstate of the weather element.

The weather element in the weather animation refers to an element forgenerating the displaying of the weather animation. For example, withrespect to a weather animation showing rain, the weather element is raindrops; with respect to a weather animation showing snow, the weatherelement is snow flakes; with respect to a weather animation showingflying sand, the weather element is sand; with respect to a weatheranimation showing sunny day, the weather element may include the sun,the moon, or the cloud; and so on.

In an optional technical solution, a motion state of a weather elementin a weather animation is determined, which make the displaying of theweather conditions is more accurately, realistically, and intuitively.This gives a fully immersive experience for the user, and improves userexperience.

Optionally, the weather information includes weather type and weathergrade. And parameters of the weather element include type of the weatherelement, number of objects of each weather element, and size of eachobject.

The above Step S21 includes determining the type of the weather element,the number of objects of each weather element, and the size of eachobject according to the weather type and the weather grade.

For example, when the weather type is rainy and the weather grade isheavy rain, it is determined that the type of the weather element in theweather animation is rain drops, and the number of rain drops in theweather animation is 300. The size of each rain drop can be set to bethe same or different.

In an optional technical solution, a weather element in a weatheranimation is more delicately presented according to the weather type andthe weather grade. This improves reality and intuition in displaying theweather condition.

Optionally, the motion state includes an initial position and a motiontrajectory.

The above Step S22 includes determining an initial position and a motiontrajectory of each object of the weather element according to theorientation information of the terminal device. And the above step S23includes displaying each object of the weather element as moving fromthe initial position along the motion trajectory on the terminal device.

For example, with respect to the rain drops, when the terminal device islaid vertically, it is determined that the initial position of the raindrops is the upper end of the weather animation; and when the terminalis laid horizontally, the initial position of the rain drops may berandomly laid on the entire region of the weather animation. In theweather animation, it may be set that each rain drop has a differentinitial position, thus making the weather animation more realistic.

In an optional technical solution, an initial position and a motiontrajectory of each weather element in a weather animation are determinedaccording to the orientation information of the terminal device, suchthat a weather element in a weather animation is more delicatelypresented. This improves reality and intuition in displaying the weathercondition.

Optionally, determining an initial position and a motion trajectory ofeach object of the weather element according to the orientationinformation of the terminal device includes determining that the motiontrajectory of each object of the weather element is displayed as movingfrom the initial position along the gravitation direction according tothe orientation information of the terminal device.

For example, with respect to the motion trajectory of the rain drops,regardless of in which orientation the terminal device is held, the raindrops always fall along the gravitation direction.

In an optional technical solution, a weather element is set as fallingalong the gravitation direction, such that a weather element in aweather animation is more delicately presented. This improves reality indisplaying the weather condition.

Optionally, the orientation information of the terminal device includes,but not limited to: horizontal, vertical, and inclined. In this case,“horizontal”, “vertical” and “inclined” indicate the positionalrelationship between a plane where the screen of the terminal device islocated and the ground plane. When the terminal device is inclined, suchinformation as a direction and an angle of the inclination may befurther acquired. Determining, according to the orientation informationof the terminal device, that the motion trajectory of each object of theweather element is displayed as moving from the initial position alongthe gravitation direction includes: determining that the motiontrajectory of each object of the weather element is displayed as movingalong a direction vertical to a plane where the screen of the terminaldevice is located when the terminal device is laid horizontally;determining that the motion trajectory of each object of the weatherelement is displayed as moving from top to bottom on a plane where thescreen of the terminal device is located when the terminal device islaid vertically; determining that the motion trajectory of each objectof the weather element is displayed as moving from top to bottom alongan upright direction in a plane where the screen of the terminal deviceis located when the terminal device is laid sideways.

FIG. 3 and FIG. 4 are schematic diagrams illustrating displaying of aweather animation according to an exemplary embodiment of the presentdisclosure.

For example, using the falling trajectory of the rain drops as anexample, as illustrated in FIG. 3, when the terminal device is laidvertically, the rain drops may be displayed as falling from top tobottom on a plane where the screen of the terminal device is located. Asillustrated in FIG. 4, when the terminal device is laid sideways, therain drops may be displayed as falling from top to bottom along anupright direction in a plane where the screen of the terminal device islocated. When the terminal device is laid horizontally, the rain dropsmay be displayed as falling along a direction vertical to a plane wherethe screen of the terminal device is located.

Optionally, the orientation information of the terminal device furtherincludes the screen of the terminal device is faced horizontally upwardand horizontally downward. Determining, according to the orientationinformation of the terminal device, that the motion trajectory of eachobject of the weather element is displayed as moving from the initialposition along a gravitation direction includes: determining that themotion trajectory of each object of the weather element is displayed asfalling down from outside of the screen to inside of the screen along adirection vertical to a plane where the screen is located when thescreen is horizontally upward; or determining that the motion trajectoryof each object of the weather element is displayed as falling down frominside of the screen to outside of the screen along a direction verticalto a plane where the screen is located when the screen is horizontallydownward,

FIG. 5 and FIG. 6 are schematic diagrams illustrating displaying of aweather animation according to another exemplary embodiment of thepresent disclosure.

For example, using the falling trajectory of the rain drops as anexample, as illustrated in FIG. 5, when the screen of the terminaldevice is faced horizontally upward, the rain drops are displayed asfalling from outside of the screen to inside of the screen. Asillustrated in FIG. 6, when the screen of the terminal device is facedhorizontally downward, the rain drops are displayed as falling frominside of the screen to outside of the screen.

In an optional technical solution, a weather animation is generatedaccording to the orientation of the terminal device, such that thegenerated weather animation is more realistic. This gives a fullyimmersive experience for the user, and improves user experience.

Optionally, the weather information further includes: wind forceinformation and wind direction information. Determining an initialposition and a motion trajectory of each object of the weather elementaccording to the orientation information of the terminal device includescalculating a position of each object of the weather element in eachframe of animation according to the type of the weather element, thesize of each object, the wind force information, the wind directioninformation, and the orientation information of the terminal device.

For example, with respect to determining of a motion trajectory of therain drops, weather information and orientation information of theterminal device need to be collaboratively considered. For example, whenit is windy, the rain drops may not fall vertically, but fall sidewaysat a specific angle. An inclination angle of falling of the rain dropsis calculated according to such information as wind force and winddirection. When the wind direction is East and the wind force is Grade3, it may be set that the rain drops fall at a smaller angle towards theright side of the screen.

In an optional technical solution, a weather animation is generatedaccording to information of a plurality of weather conditions. In thisway, a plurality of weather conditions are comprehensively anddynamically presented via integrated motion pictures, and the weatherconditions are displayed more accurately, more realistically, and moreintuitively.

Optionally, the above step S12 includes using an image captured by thecamera of the terminal device as a background of the weather animation,or using a predetermined image as a background of the weather animation.

For example, as illustrated in FIG. 3 and FIG. 4, a predetermined imageis used as the background of the weather animation; or, as illustratedin FIG. 5 and FIG. 6, a camera at the rear side of the terminal deviceis opened, and an image captured by the camera is used as the backgroundof the weather animation. Herein, if the user looks down at the screen,the user may find that the rain drops seemingly fall from the screendown to the ground; if the user looks up at the screen, the user mayfind that the rain drops seemingly fall from the sky.

In an optional technical solution, the background of a weather animationmay be a constant, predetermined image or a real scene image, and theweather conditions are displayed more diversified, more realistically,and more intuitively. This gives a fully immersive experience for theuser, and improves user experience.

FIG. 7 is a flowchart illustrating a method for displaying weatheraccording to another exemplary embodiment of the present disclosure. Asillustrated in FIG. 7, optionally, when a predetermined image is used asthe background of the weather animation, the method further includes thefollowing steps.

In step S71, current time is acquired.

In step S72, background chromaticity value information of the weatheranimation is determined according to the current time.

In step S73, a chromaticity value of the background of the weatheranimation is adjusted according to the background chromaticity valueinformation.

In an optional technical solution, the background using thepredetermined image varies with the time, such that the background of aweather animation is subjected to variations of luminosity andchromaticity, and variations of light with the time are practicallypresented, thereby giving a fully immersive experience for the user. Inaddition, it is unnecessary to change the background image, and only achromaticity value thereof needs to be modified. This reduces storedimage resources, and improves processing efficiency.

FIG. 8 is a flowchart illustrating a method for displaying weatheraccording to another exemplary embodiment of the present disclosure. Asillustrated in FIG. 8, optionally, when a predetermined image is used asthe background of the weather animation, the method further includes thefollowing steps.

In step S81, a current date is acquired.

In step S82, a season of the current date is determined.

In step S83, a background type of the weather animation is determinedaccording to the season of the current date.

In step S84, a predetermined image corresponding to the background typeis selected as the background of the weather animation.

In an optional technical solution, with respect to a background with apredetermined image, a corresponding background image may be selected todisplay a weather animation according to the current season. Forexample, four-season (spring, summer, autumn, and winter) modes may beset, wherein in each mode, different images are assigned to correspondto different months; and a corresponding image may be selected as thebackground of the weather animation according to a current date. Theseason factor is considered in displaying a weather animation, such thata fully immersive experience is given to the user, and user experienceis improved.

Optionally, a current ambient temperature and/or a current ambienthumidity may be further acquired, and the display effect of the weatheranimation may be adjusted according to the current ambient temperatureand/or the current ambient humidity.

In this embodiment, with respect to such weather conditions as rain,snow, hail, sand and dust, and the like, a weather animation may begenerated in collaborative consideration of a plurality of weatherinformation, for example, rain, snow, hail, sand and dust volume, windforce, wind direction, current time, season, temperature and the like,and orientation of the terminal device, and direction of the screenfacing. When lightning is present, an animation of lightning may beadded. For example, an effect of lightning may be achieved by suddenlylighting a specific region in the animation.

With respect to a sunny weather condition, a sunlight irradiationdirection and color thereof, or a moon shape and color thereof, or thelike may be set according to current time, season, temperature, and thelike.

With respect to a cloudy weather condition, a cloud drifting effect maybe displayed in the animation according to current wind force and winddirection.

With respect to a foggy or hazy weather condition, visibility of thebackground may be adjusted, and a severity grade of the fog or haze maybe displayed.

In this embodiment, a weather animation may be generated by using theDraw function in the Android system. For example, rain drops may becontinuously drawn to generate an animation about the rain. If a 3Deffect needs to be simulated, the OpenGL technology may be used togenerate a 3D weather animation.

According to the method for displaying weather provided in the presentdisclosure, the animation effect generated is more accurate andrealistic. This gives a fully immersive experience for the user, andimproves user experience.

FIG. 9 is a block diagram illustrating a weather displaying apparatusaccording to an exemplary embodiment of the present disclosure. Asillustrated in FIG. 9, the apparatus includes: an acquiring module 91, agenerating module 92, and a displaying module 93.

The acquiring module 91 is configured to acquire weather information andorientation information of a terminal device.

The generating module 92 is configured to generate a weather animationaccording to the weather information and the orientation information ofthe terminal device.

The displaying module 93 is configured to display the weather animationon the terminal device.

FIG. 10 is a block diagram illustrating a generating module according toan exemplary embodiment of the present disclosure. As illustrated inFIG. 10, optionally, the generating module 92 includes: a firstdetermining submodule 921, a second determining submodule 922, and ananimation generating submodule 923.

The first determining submodule 921 is configured to determine at leastone weather element for generating the weather animation according tothe weather information.

The second determining submodule 922 is configured to determine a motionstate of each of the at least one weather element according to theorientation information of the terminal device.

The animation generating submodule 923 is configured to generate theweather animation according to the motion state of the weather element.

Optionally, the weather information acquired by the acquiring module 91includes: weather type and weather grade. And parameters of the weatherelement determined by the first determining submodule 921 include typeof the weather element, number of objects of each weather element, andsize of each object. The first determining submodule 921 is configuredto determine the type of the weather element, the number of objects ofeach weather element, and the size of each object according to theweather type and the weather grade.

Optionally, the motion state determined by the second determiningsubmodule 922 includes an initial position and a motion trajectory; thesecond determining submodule 922 is configured to determine an initialposition and a motion trajectory of each object of the weather elementaccording to the orientation information of the terminal device. And thedisplaying module 93 is configured to display each object of the weatherelement as moving from the initial position along the motion trajectoryon the terminal device.

Optionally, the second determining submodule 922 is configured todetermine, according to the orientation information of the terminaldevice, that each object of the weather element moves from the initialposition along the gravitation direction.

Optionally, the orientation information of the terminal device acquiredby the acquiring module 91 includes: horizontal, vertical, and inclined.The second determining submodule 922 is configured to: when the terminaldevice is laid horizontally, determine that the motion trajectory ofeach object of the weather element is displayed as moving along adirection vertical to a plane where the screen of the terminal device islocated; when the terminal device is laid vertically, determine that themotion trajectory of each object of the weather element is displayed asmoving from top to bottom on a plane where the screen of the terminaldevice is located; or when the terminal device is laid sideways,determine that the motion trajectory of each object of the weatherelement is displayed as moving from top to bottom along an uprightdirection in a plane where the screen of the terminal device is located.

Optionally, the orientation information of the terminal device acquiredby the acquiring module 91 further includes that the screen of theterminal device is faced horizontally upward and horizontally downward.The second determining submodule 922 is configured to: when the screenis faced horizontally upward, determine that the motion trajectory ofeach object of the weather element is displayed as falling down fromoutside of the screen to inside of the screen along a direction verticalto a plane where the screen is located; or when the screen is facedhorizontally downward, determine that the motion trajectory of eachobject of the weather element is displayed as falling down from insideof the screen to outside of the screen along a direction vertical to aplane where the screen is located.

Optionally, the weather information acquired by the acquiring module 91further includes wind force information and wind direction information.And the second determining submodule 922 is configured to calculate aposition of each object of the weather element in each frame ofanimation according to the type of the weather element, the size of eachobject, the wind force information, the wind direction information, andthe orientation information of the terminal device.

FIG. 11 is a block diagram illustrating a generating module according toanother exemplary embodiment of the present disclosure. As illustratedin FIG. 11, optionally, the generating module 92 includes a backgroundselecting submodule 924.

The background selecting submodule 924 is configured to use a imagecaptured by a camera of the terminal device as a background of theweather animation, or use a predetermined image as a background of theweather animation.

FIG. 12 is a block diagram illustrating a weather displaying apparatusaccording to another exemplary embodiment of the present disclosure. Asillustrated in FIG. 12, optionally, the apparatus further includes atime acquiring module 94.

The time acquiring module 94 is configured to acquire current time whenthe predetermined image is used as the background of the weatheranimation.

The generating module 92 further includes a third determining submodule925 and an adjusting submodule 926.

The third determining submodule 925 is configured to determinebackground chromaticity value information of the weather animationaccording to the current time.

The adjusting submodule 926 is configured to adjust a chromaticity valueof the background of the weather animation according to the backgroundchromaticity value information.

FIG. 13 is a block diagram illustrating a weather displaying apparatusaccording to another exemplary embodiment of the present disclosure. Asillustrated in FIG. 13, optionally, the apparatus further includes adate acquiring module 95 and a season determining module 96.

The date acquiring module 95 is configured to acquire a current datewhen the predetermined image is used as the background of the weatheranimation.

The season determining module 96 is configured to determine a season ofthe current date.

The generating module 92 further includes a fourth determining submodule927.

The fourth determining submodule 927 is configured to determine abackground type of the weather animation according to the season of thecurrent date.

The background selecting submodule 924 is configured to select apredetermined image corresponding to the background type as thebackground of the weather animation.

With respect to the apparatuses in the above embodiments, the specificimplementations of operations executed by various modules thereof havebeen described in detail in the embodiments illustrating the methods,which are not described herein any further.

In this embodiment, a weather animation is generated according toweather information and orientation information. In this way, aplurality of weather conditions are comprehensively and dynamicallypresented via integrated motion pictures, and the weather conditions aredisplayed more accurately, more realistically, and more intuitively. Inaddition, the weather conditions are presented in combination withcurrent orientation information of a terminal device, thus making thepresentation of the weather conditions effectively interacts with usersby considering the state which the users brought upon the terminaldevice, and creating more diverse effects in the presentation of theweather conditions. This gives a fully immersive experience for theuser, and improves user experience.

The present disclosure further provides a device for use in weatherdisplay which includes a processor and a memory for storing instructionsexecutable by the processor which is configured to acquire weatherinformation and orientation information of a terminal device andgenerate a weather animation according to the weather information theorientation information of the terminal device , and then display theweather animation on the terminal device.

In this embodiment, a weather animation is generated according toweather information and orientation information. In this way, aplurality of weather conditions are comprehensively and dynamicallypresented via integrated motion pictures, and the weather conditions aredisplayed more accurately, more realistically, and more intuitively. Inaddition, the weather conditions are presented in combination withcurrent orientation information of a terminal device, thus making thepresentation of the weather conditions effectively interacts with usersby considering the state which the users brought upon the terminaldevice, and creating more diverse effects in the presentation of theweather conditions. This gives a fully immersive experience for theuser, and improves user experience.

FIG. 14 is a block diagram illustrating a device 1300 for use in weatherdisplaying according to an exemplary embodiment of the presentdisclosure. The device 1300 may be a terminal device, such as a mobilephone, a computer, a digital broadcast terminal, a messaging device, agaming console, a tablet, a medical device, an exercise equipment, apersonal digital assistant, and the like.

Referring to FIG. 14, the device 1300 may include one or more of thefollowing components: a processing component 1302, a memory 1304, apower component 1306, a multimedia component 1308, an audio component1310, an input/output (I/O) interface 1312, a sensor component 1314, anda communication component 1316.

The processing component 1302 typically controls overall operations ofthe device 1300, such as the operations associated with display,telephone calls, data communications, camera operations, and recordingoperations. The processing component 1302 may include one or moreprocessors 1320 to execute instructions to perform all or a part of thesteps in the above-described methods. In addition, the processingcomponent 1302 may include one or more modules which facilitate theinteraction between the processing component 1302 and other components.For example, the processing component 1302 may include a multimediamodule to facilitate the interaction between the multimedia component1308 and the processing component 1302.

The memory 1304 is configured to store various types of data to supportthe operations of the device 1300. Examples of such data includeinstructions for any application or method operated on the device 1300,contact data, phonebook data, messages, images, videos, and the like.The memory 1304 may be implemented using any type of volatile ornon-volatile memory devices, or a combination thereof, such as a staticrandom access memory (SRAM), an electrically erasable programmableread-only memory (EEPROM), an erasable programmable read-only memory(EPROM), a programmable read-only memory (PROM), a read-only memory(ROM), a magnetic memory, a flash memory, a magnetic or optical disk.

The power component 1306 provides power to various components of thedevice 1300. The power component 1306 may include a power managementsystem, one or more power supplies, and other components associated withthe generation, management, and distribution of power in the device1300.

The multimedia component 1308 includes a screen providing an outputinterface between the device 1300 and the user. In some embodiments, thescreen may include a liquid crystal display (LCD) and a touch panel(TP). If the screen includes the touch panel, the screen may beimplemented as a touch screen to receive input signals from the user.The touch panel includes one or more touch sensors to sense touches,swipes, and gestures on the touch panel. The touch sensors may not onlysense a boundary of a touch or swipe action, but also sense a period oftime and a pressure associated with the touch or swipe action. In someembodiments, the multimedia component 1308 includes a front cameraand/or a rear camera. The front camera and/or the rear camera mayreceive external multimedia data while the device 1300 is in anoperation mode, such as a photographing mode or a video mode. Each ofthe front camera and the rear camera may be a fixed optical lens systemor have focus and optical zoom capability.

The audio component 1310 is configured to output and/or input audiosignals. For example, the audio component 1310 includes a microphone(MIC) configured to receive an external audio signal when the device1300 is in an operation mode, such as a call mode, a recording mode, ora voice recognition mode. The received audio signal may be furtherstored in the memory 1304 or transmitted via the communication component1316. In some embodiments, the audio component 1310 further includes aspeaker to output audio signals.

The I/O interface 1312 provides an interface between the processingcomponent 1302 and a peripheral interface module, such as a keyboard, aclick wheel, a button, or the like. The buttons may include, but are notlimited to, a home button, a volume button, a starting button, and alocking button.

The sensor component 1314 includes one or more sensors to provide statusassessments of various aspects of the device 1300. For example, thesensor component 1314 may detect an open/closed status of the device1300, relative positioning of components, e.g., the display and thekeypad, of the device 1300, a change in position of the device 1300 or acomponent of the device 1300, a presence or absence of user contact withthe device 1300, an orientation or an acceleration/deceleration of thedevice 1300, and a change in temperature of the device 1300. The sensorcomponent 1314 may include a proximity sensor configured to detect thepresence of nearby objects without any physical contact. The sensorcomponent 1314 may also include a light sensor, such as a CMOS or CCDimage sensor, for use in imaging applications. In some embodiments, thesensor component 1314 may also include an accelerometer sensor, agyroscope sensor, a magnetic sensor, a pressure sensor, or a temperaturesensor.

The communication component 1316 is configured to facilitatecommunications, wired or wirelessly, between the device 1300 and otherdevices. The device 1300 may access a wireless network based on acommunication standard, such as WiFi, 2G, or 3G, or a combinationthereof. In one exemplary embodiment, the communication component 1316receives a broadcast signal or broadcast associated information from anexternal broadcast management system via a broadcast channel. In oneexemplary embodiment, the communication component 1316 further includesa near field communication (NFC) module to facilitate short-rangecommunications. For example, the NFC module may be implemented based ona radio frequency identification (RFID) technology, an infrared dataassociation (IrDA) technology, an ultra-wideband (UWB) technology, aBluetooth (BT) technology, and other technologies.

In exemplary embodiments, the device 1300 may be implemented with one ormore application specific integrated circuits (ASICs), digital signalprocessors (DSPs), digital signal processing devices (DSPDs),programmable logic devices (PLDs), field programmable gate arrays(FPGAs), controllers, micro-controllers, microprocessors, or otherelectronic components, for performing the above-described methods.

In exemplary embodiments, there is also provided a non-transitorycomputer-readable storage medium including instructions, for example,the memory 1304 including instructions, executable by the processor 1320in the device 1300, for performing the above-described methods. Forexample, the non-transitory computer-readable storage medium may be aROM, a random access memory (RAM), a compact disc read-only memory(CD-ROM), a magnetic tape, a floppy disc, an optical data storagedevice, or the like.

A non-transitory computer-readable storage medium is provided. Wheninstructions stored in the storage medium are executed by a processor ofa mobile terminal, the mobile terminal is caused to perform a method fordisplaying weather. In this case, the method includes: acquiring weatherinformation and orientation information of the terminal device;generating a weather animation according to the weather information andthe orientation information of the terminal device; and displaying theweather animation on the terminal device.

Optionally, generating a weather animation according to the weatherinformation and the orientation information of the terminal deviceincludes: determining at least one weather element for generating theweather animation according to the weather information; determining amotion state of each of the at least one weather element according tothe orientation information of the terminal device; and generating theweather animation according to the motion state of the weather element.

Optionally, the weather information includes weather type and weathergrade. And parameters of the weather element include type of the weatherelement, number of objects of each weather element, and size of eachobject. Determining at least one weather element for generating theweather animation according to the weather information includesdetermining the type of the weather element, the number of objects ofeach weather element and the size of each object according to theweather type and the weather grade.

Optionally, the motion state includes an initial position and a motiontrajectory. Determining a motion state of each of the at least oneweather element according to the orientation information of the terminaldevice includes determining an initial position and a motion trajectoryof each object of the weather element according to the orientationinformation of the terminal device. And displaying the weather animationon the terminal device includes displaying each object of the weatherelement as moving from the initial position along the motion trajectoryon the terminal device.

Optionally, determining an initial position and a motion trajectory ofeach object of the weather element according to the orientationinformation of the terminal device includes determining, according tothe orientation information of the terminal device, that the motiontrajectory of each object of the weather element is displayed as movingfrom the initial position along the gravitation direction.

Optionally, the orientation information of the terminal device includeshorizontal, vertical, and inclined. And determining, according to theorientation information of the terminal device, that the motiontrajectory of each object of the weather element is displayed as movingfrom the initial position along the gravitation direction includes:determining that the motion trajectory of each object of the weatherelement is displayed as moving along a direction vertical to a planewhere the screen of the terminal device is located when the terminaldevice is laid horizontally; determining that the motion trajectory ofeach object of the weather element is displayed as moving from top tobottom on a plane where the screen of the terminal device is locatedwhen the terminal device is laid vertically; determining that the motiontrajectory of each object of the weather element is displayed as movingfrom top to bottom along an upright direction in a plane where thescreen of the terminal device is located when the terminal device islaid sideways.

Optionally, the orientation information of the terminal device furtherincludes horizontally upward and horizontally downward of the screen ofthe terminal device. And determining, according to the orientationinformation of the terminal device, that the motion trajectory of eachobject of the weather element is displayed as moving from the initialposition along the gravitation direction includes: determining that themotion trajectory of each object of the weather element is displayed asfalling down from outside of the screen to inside of the screen along adirection vertical to a plane where the screen is located when thescreen is faced horizontally upward; determining that the motiontrajectory of each object of the weather element is displayed as fallingdown from inside of the screen to outside of the screen along adirection vertical to a plane where the screen is located when thescreen is faced horizontally downward. Optionally, the weatherinformation further includes wind force information and wind directioninformation. And determining an initial position and a motion trajectoryof each object of the weather element according to the orientationinformation of the terminal device includes calculating a position ofeach object of the weather element in each frame of animation accordingto the type of the weather element, the size of each object, the windforce information, the wind direction information, and the orientationinformation of the terminal device.

Optionally, generating a weather animation according to the weatherinformation and the orientation information of the terminal deviceincludes using a image captured by a camera of the terminal device as abackground of the weather animation, or using a predetermined image as abackground of the weather animation.

Optionally, when the predetermined image is used as the background ofthe weather animation, the method further includes: acquiring currenttime; determining background chromaticity value information of theweather animation according to the current time; adjusting achromaticity value of the background of the weather animation accordingto the background chromaticity value information.

Optionally, when the predetermined image is used as the background ofthe weather animation, the method further includes: acquiring a currentdate; determining a season of the current date; determining a backgroundtype of the weather animation according to the season of the currentdate; and selecting a predetermined image corresponding to thebackground type as the background of the weather animation.

In the embodiments, the weather animation is generated according to theweather information and the orientation information. In this way, aplurality of weather conditions are comprehensively and dynamicallypresented via integrated motion pictures, and the weather conditions aredisplayed more accurately, realistically, and intuitively. In addition,the weather conditions are presented in combination with currentorientation information of a terminal device, thus making thepresentation of the weather condition effectively interacts with usersby considering the state which the users brought upon the terminaldevice, and creating more diverse effects in the presentation of theweather conditions. This gives a fully immersive experience for theuser, and improves user experience.

Other embodiments of the present disclosure will be apparent to thoseskilled in the art from consideration of the specification and practicedisclosed herein. This application is intended to cover any variations,uses, or adaptations of the present disclosure following the generalprinciples thereof and including such departures from the presentdisclosure as coming within common knowledge or customary technicalmeans in the art. It is intended that the specification and embodimentsbe considered as exemplary only, with a true scope and spirit of thepresent disclosure being indicated by the appended claims.

It will be appreciated that the present disclosure is not limited to theexact construction that has been described above and illustrated in theaccompanying drawings, and that various modifications and changes can bemade without departing from the scope thereof. The scope of the presentdisclosure is only defined by the appended claims.

What is claimed is:
 1. A method for displaying weather, comprising:acquiring weather information and orientation information of a terminaldevice; generating a weather animation according to the weatherinformation and the orientation information of the terminal device; anddisplaying the weather animation on the terminal device.
 2. The methodaccording to claim 1, wherein generating the weather animation accordingto the weather information and the orientation information of theterminal device comprises: determining at least one weather element forgenerating the weather animation according to the weather information;determining a motion state of each of the at least one weather elementaccording to the orientation information of the terminal device; andgenerating the weather animation according to the motion state of theweather element.
 3. The method according to claim 2, wherein the weatherinformation comprises weather type and weather grade; and parameters ofthe weather element comprise type of the weather element, number ofobjects of each weather element, and size of each object; anddetermining the at least one weather element for generating the weatheranimation according to the weather information comprises: determiningthe type of the weather element, the number of objects of each weatherelement, and the size of each object according to the weather type andthe weather grade.
 4. The method according to claim 3, wherein themotion state comprises an initial position and a motion trajectory; anddetermining the motion state of each of the at least one weather elementaccording to the orientation information of the terminal devicecomprises: determining the initial position and the motion trajectory ofeach object of the weather element according to the orientationinformation of the terminal device.
 5. The method according to claim 4,wherein displaying the weather animation on the terminal devicecomprises: displaying each object of the weather element as moving fromthe initial position along the motion trajectory on the terminal device.6. The method according to claim 4, wherein determining the initialposition and the motion trajectory of each object of the weather elementaccording to the orientation information of the terminal devicecomprises: determining, according to the orientation information of theterminal device, that each object of the weather element moves from theinitial position along a gravitational direction.
 7. The methodaccording to claim 6, wherein the orientation information of theterminal device comprises: horizontal, vertical, and inclined; anddetermining, according to the orientation information of the terminaldevice, that the motion trajectory of each object of the weather elementis displayed as moving from the initial position along the gravitationaldirection comprises: when the terminal device is laid horizontally,determining that the motion trajectory of each object of the weatherelement is displayed as: moving along a direction vertical to a planewhere a screen of the terminal device is located; when the terminaldevice is laid vertically, determining that the motion trajectory ofeach object of the weather element is displayed as: moving from top tobottom on a plane where the screen of the terminal device is located;and when the terminal device is laid sideways, determining that themotion trajectory of each object of the weather element is displayed as:moving from top to bottom along an upright direction in a plane wherethe screen of the terminal device is located.
 8. The method according toclaim 6, wherein the orientation information of the terminal devicefurther comprises a screen facing horizontally upward and horizontallydownward; and determining, according to the orientation information ofthe terminal device, that the motion trajectory of each object of theweather element is displayed as moving from the initial position alongthe gravitational direction comprises: when the screen is facedhorizontally upward, determining that the motion trajectory of eachobject of the weather element is displayed as falling down from outsideof the screen to inside of the screen along a direction vertical to aplane where the screen is located; and when the screen is facedhorizontally downward, determining that the motion trajectory of eachobject of the weather element is displayed as falling down from insideof the screen to outside of the screen along a direction vertical to aplane where the screen is located.
 9. The method according to claim 4,wherein the weather information further comprises wind force informationand wind direction information; and determining the initial position andthe motion trajectory of each object of the weather element according tothe orientation information of the terminal device comprises:calculating a position of each object of the weather element in eachframe of the animation according to the type of the weather element, thesize of each object, the wind force information, the wind directioninformation, and the orientation information of the terminal device. 10.The method according to claim 1, wherein generating the weatheranimation according to the weather information and the orientationinformation of the terminal device comprises: using an image captured bya camera of the terminal device as a background of the weatheranimation, or using a predetermined image as a background of the weatheranimation.
 11. The method according to claim 10, wherein when thepredetermined image is used as the background of the weather animation,the method further comprises: acquiring a current time; determiningbackground chromaticity value information of the weather animationaccording to the current time; and adjusting a chromaticity value of thebackground of the weather animation according to the backgroundchromaticity value information.
 12. The method according to claim 10,wherein when the predetermined image is used as the background of theweather animation, the method further comprises: acquiring a currentdate; determining a season of the current date; determining a backgroundtype of the weather animation according to the season of the currentdate; and selecting a predetermined image corresponding to thebackground type as the background of the weather animation.
 13. A devicefor displaying weather, comprising: one or more processors; and a memoryconfigured to store instructions executable by the processor, whereinthe processors are configured to perform: acquiring weather informationand orientation information of a terminal device; generating a weatheranimation according to the weather information and the orientationinformation of the terminal device; and displaying the weather animationon the terminal device.
 14. The device according to claim 13, whereingenerating the weather animation according to the weather informationand the orientation information of the terminal device comprises:determining at least one weather element for generating the weatheranimation according to the weather information; determining a motionstate of each of the at least one weather element according to theorientation information of the terminal device; and generating theweather animation according to the motion state of the weather element.15. The device according to claim 14, wherein the weather informationcomprises weather type and weather grade; and parameters of the weatherelement comprise type of the weather element, number of objects of eachweather element, and size of each object; and determining the at leastone weather element for generating the weather animation according tothe weather information comprises: determining the type of the weatherelement, the number of objects of each weather element, and the size ofeach object according to the weather type and the weather grade.
 16. Thedevice according to claim 15, wherein the motion state comprises aninitial position and a motion trajectory; and determining the motionstate of each of the at least one weather element according to theorientation information of the terminal device comprises: determiningthe initial position and the motion trajectory of each object of theweather element according to the orientation information of the terminaldevice.
 17. The device according to claim 16, wherein displaying theweather animation on the terminal device comprises: displaying eachobject of the weather element as moving from the initial position alongthe motion trajectory on the terminal device.
 18. The device accordingto claim 16, wherein determining the initial position and the motiontrajectory of each object of the weather element according to theorientation information of the terminal device comprises: determining,according to the orientation information of the terminal device, thateach object of the weather element moves from the initial position alonga gravitational direction.
 19. The device according to claim 16, whereinthe weather information further comprises wind force information andwind direction information; and determining the initial position and themotion trajectory of each object of the weather element according to theorientation information of the terminal device comprises: calculating aposition of each object of the weather element in each frame of theanimation according to the type of the weather element, the size of eachobject, the wind force information, the wind direction information, andthe orientation information of the terminal device.
 20. A non-transitorycomputer-readable storage medium having stored therein instructionsthat, when executed by one or more processors of a device, cause thedevice to perform: acquiring weather information and orientationinformation of a terminal device; generating a weather animationaccording to the weather information and the orientation information ofthe terminal device; and displaying the weather animation on theterminal device.